prepare("select * from allotee_biodata where regno = '$clientid'") ; $sqladdres->execute() ; $addrow = $sqladdres->fetch(pdo::FETCH_ASSOC) ; $phone = $addrow['allote_phone'] ; $email = $addrow['allote_email'] ; $name= $addrow['custodian'] ; //get data from stall data $sqls = $DBcon->prepare("select * from stall_details where regno = '$clientid'") ; $sqls->execute() ; $addros = $sqls->fetch(pdo::FETCH_ASSOC) ; $mname = $addros['market'] ; $stallno = $addros['stall_no'] ; $zone = $addros['zone'] ; //$govt = "An approved e-governance initiative by The Govt. of Anambra State." ; //$coda = $clientid.'-'.$phone.'-'.$name.'-'.$gender.'-'.$email.'-'.$mname.'-'.$stallno.'-zone'.$zone.'-'.$govt ; $comp = "X5M GLOBAL MAX-DATA CONCEPT LTD" ; //$coda1 = $clientid.'-'.$comp; $govt = "An approved e-governance initiative by The Govt. of Anambra State." ; $coda = $clientid.'-'.$phone.'-'.$name.'-'.$email.'-'.$mname.'-'.$stallno.'-zone'.$zone.'----'.$govt.'----'.'In Agency with'.'---'.$comp ; } //set it to writable location, a place for temp generated PNG files $PNG_TEMP_DIR = dirname(__FILE__).DIRECTORY_SEPARATOR.'temp'.DIRECTORY_SEPARATOR; //html PNG location prefix $PNG_WEB_DIR = 'temp/'; include "QRC/qrlib.php"; //ofcourse we need rights to create temp dir if (!file_exists($PNG_TEMP_DIR)) mkdir($PNG_TEMP_DIR); $filename = $PNG_TEMP_DIR.'test.png'; $errorCorrectionLevel = 'L'; $matrixPointSize = 2; // user data $filename = $PNG_TEMP_DIR.'test'.md5($coda.'|'.$errorCorrectionLevel.'|'.$matrixPointSize).'.png'; QRcode::png($coda, $filename, $errorCorrectionLevel, $matrixPointSize, 2); ?>